package com.jike.jkgame.data;

import java.util.List;

import com.jike.jkgame.R;
import com.jike.jkgame.Utilis;

public class PlayerDetail extends Player{
	public boolean attack;
	public int army; // 军团防御或者攻击力
	public int base; // 基础防御或者攻击力
	public List<SimpleGeneral> team;
	
	public String getFormatedString() {
		if (attack) {
			return String.format(Utilis.getResString(R.string.player_compare_attack_format), rname, level, army, base);
		} else {
			return String.format(Utilis.getResString(R.string.player_compare_defense_format), rname, level, army, base);
		}
	}
}
